How to run a Tezos node
Just Dockerized
https://github.com/shogochiai/localnet_gen
Older note
from How to deploy ligo contract to Tezos
Preprequisite
Refer a preset docker image or How to build Tezos on MacOS (abandoned)
Then you can
Run a Tezos node
Make runnable command
In your Tezos fork dir, run mv scripts/alphanet.sh scripts/localnet.sh
Run scripts/localnet.sh start (If docker hangs up, restart docker and scripts/localnet.sh restart, if storage is not enough, make space for docker.)
Run scripts/localnet.sh client man -v 3 | grep originate and confirm you can use originate subcommand
Push your custom Tezos to your dockerhub account
Refer it from scripts/localnet.sh script. Naming is as you like.
Sync node
scripts/localnet.sh client bootstrapped to sync timestamp
Create an account
Get a faucet privatekey here
export TZ_FAUCET=tz1f1zfXuKrMZM5uXfaU2HEpoNHtMoRd5RbT.json
mv ~/Downloads/$TZ_FAUCET ./
scripts/localnet.sh client activate account alice with "container:$TZ_FAUCET" --force
Check balance scripts/localnet.sh client get balance for alice